﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Application.ApiAdminServices;

/// <summary>
/// 文件
///</summary>
public class ApiFilesInput
{
    #region 公共字段

    /// <summary>
    /// ID
    ///</summary>
    public long? Id { get; set; }

    ///// <summary>
    ///// 扩展字段
    /////</summary>
    //public string ExtensionData { get; set; }
    ///// <summary>
    ///// 创建用户ID
    /////</summary>
    //public long? CreatorUserId { get; set; }
    ///// <summary>
    ///// 创建用户
    /////</summary>
    //public string CreatorUserName { get; set; }
    ///// <summary>
    ///// 创建时间
    /////</summary>
    //public DateTimeOffset CreationTime { get; set; }
    ///// <summary>
    ///// 更新用户ID
    /////</summary>
    //public long? UpdateUserId { get; set; }
    ///// <summary>
    ///// 更新用户
    /////</summary>
    //public string UpdateUserName { get; set; }
    ///// <summary>
    ///// 更新时间
    /////</summary>
    //public DateTimeOffset? UpdateTime { get; set; }
    ///// <summary>
    ///// 默认假删除
    /////</summary>
    //public bool IsDeleted { get; set; }
    ///// <summary>
    ///// 删除用户ID
    /////</summary>
    //public long? DeletedUserId { get; set; }
    ///// <summary>
    ///// 删除用户
    /////</summary>
    //public string DeletedUserName { get; set; }
    ///// <summary>
    ///// 删除时间
    /////</summary>
    //public DateTimeOffset? DeletedTime { get; set; }

    #endregion 公共字段

    /// <summary>
    /// 父ID
    ///</summary>
    public long PID { get; set; }

    /// <summary>
    /// 文件类型
    ///</summary>
    public int FileType { get; set; }

    /// <summary>
    /// 文件存储类型
    ///</summary>
    public int FileStorageType { get; set; }

    /// <summary>
    /// 名称
    ///</summary>
    public string Name { get; set; }

    /// <summary>
    /// 扩展名
    ///</summary>
    public string Extension { get; set; }

    /// <summary>
    /// 大小
    ///</summary>
    public int Size { get; set; }

    /// <summary>
    /// 分类
    ///</summary>
    public string Type { get; set; }

    /// <summary>
    /// 存储到bucket的名称（文件唯一标识id）
    ///</summary>
    public string FileObjectName { get; set; }

    /// <summary>
    /// 存储路径
    ///</summary>
    public string FilePath { get; set; }

    /// <summary>
    /// 是否开放文件            开放的文件，任何人都可以访问读取
    ///</summary>
    public bool IsOpenFile { get; set; }

    /// <summary>
    /// 层级
    ///</summary>
    public int Level { get; set; }

    /// <summary>
    /// 层级路径            格式 a/b/c
    ///</summary>
    public string LevelPath { get; set; }

    /// <summary>
    /// 来源数据ID
    ///</summary>
    public int SourceDataId { get; set; }

    /// <summary>
    /// 来源数据类型
    ///</summary>
    public string SourceDataType { get; set; }
}